package com.kedacom.general.feign;

import com.kedacom.general.feign.rsp.UnifyData;
import com.kedacom.general.result.ResponseMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "deviceClient", url = "${feign.cdevice.url}")
public interface DeviceClient {

    /**
     * 根据参数查询设备(包含扩展字段)
     *
     * @param
     * @return
     */
    @GetMapping("/device/ext")
    ResponseMessage<UnifyData<Map<String, Object>>> queryExt(@RequestParam Map<String, Object> map);


}
